//
//  ViewController.h
//  MultiTouch
//
//  Created by iD Student on 7/9/13.
//  Copyright (c) 2013 iD Student. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Particle.h"
@interface ViewController : UIViewController<UIPickerViewDataSource, UIPickerViewDelegate>
{
    UIImage *image;
    UIImage *image2;
    NSTimer *timer;
    UITouch *touch;
    UITouch *touch2;
    NSMutableArray *particles;
    CGPoint point, previousPoint;
    BOOL isTouching;
    IBOutlet UIButton *startAnimation;
    IBOutlet UIImageView *imageRocket;
    
    NSMutableArray *touchesArray;
    NSUInteger nNumTouches;
    CGPoint ptTouch;
    
    IBOutlet UIButton *recordPlay;
    IBOutlet UIButton *goToBackgroundSwitcher;
    IBOutlet UIButton *goBack;
    IBOutlet UILabel *setBackgroundInstructionLabel;
    
    NSMutableArray *touchRecordArray1;
    NSMutableArray *touchRecordArray2;
    NSMutableArray *touchRecordArray3;
    NSMutableArray *touchRecordArray4;
    
    NSArray *arrayOfColors;
    NSArray *arrayofColorNames;
    IBOutlet UIPickerView *pickerBackground;
    
    int selectedRow;
    UIColor *color;
    
    
}

@property (nonatomic,retain) IBOutlet UILabel *setBackgroundInstructionLabel;
@property (nonatomic,retain) IBOutlet UIButton *recordPlay, *goToBackgroundSwitcher, *goBack;

- (void) update;
- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;

- (BOOL) checkIfTouchMoved;

- (IBAction)recordPlay:(id)sender;
- (IBAction)changePressed:(id)sender;


- (IBAction)buttonGoBackPressed:(id)sender;

@end

